package com.pd.backend.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 分页返回类
 */
@ApiModel(value = "分页返回类")
public class PageResponseResult extends ResponseResult implements Serializable {
    /**
     * 当前页码
     */
    @ApiModelProperty(value = "当前页码")
    private Integer currentPage;
    /**
     * 页面大小
     */
    @ApiModelProperty(value = "页面大小")
    private Integer size;
    /**
     * 总条数
     */
    @ApiModelProperty(value = "总条数")
    private Integer total;
    public PageResponseResult(Integer currentPage, Integer size, Integer total) {
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
    }
    public PageResponseResult() {
    }
    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
